<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="链接官方链接-G2快速上手官方链接-G2Plot快速上手G2-githubG2Plot-github G2基础示例基础条形图  1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071&amp;lt">
<meta property="og:type" content="article">
<meta property="og:title" content="antv基础配置与示例">
<meta property="og:url" content="http://yoursite.com/2020/09/09/antv基础配置与示例/index.html">
<meta property="og:site_name" content="春风自是人间客">
<meta property="og:description" content="链接官方链接-G2快速上手官方链接-G2Plot快速上手G2-githubG2Plot-github G2基础示例基础条形图  1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071&amp;lt">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://wx4.sinaimg.cn/mw1024/0069qZtTgy1gikkhg5ipwj30rg0gk3ze.jpg">
<meta property="og:image" content="https://wx1.sinaimg.cn/mw1024/0069qZtTgy1gikkgwc35qj30r40fvwf0.jpg">
<meta property="og:updated_time" content="2020-09-10T23:26:09.836Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="antv基础配置与示例">
<meta name="twitter:description" content="链接官方链接-G2快速上手官方链接-G2Plot快速上手G2-githubG2Plot-github G2基础示例基础条形图  1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071&amp;lt">
<meta name="twitter:image" content="https://wx4.sinaimg.cn/mw1024/0069qZtTgy1gikkhg5ipwj30rg0gk3ze.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: "",
      labels: ""
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2020/09/09/antv基础配置与示例/">





  <title>antv基础配置与示例 | 春风自是人间客</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">春风自是人间客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">是非成败转头空，青山依旧在，几度夕阳红。</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-program">
          <a href="/categories/program" rel="section">
            
            程序
          </a>
        </li>
      
        
        <li class="menu-item menu-item-reading">
          <a href="/categories/reading" rel="section">
            
            阅读
          </a>
        </li>
      
        
        <li class="menu-item menu-item-idea">
          <a href="/categories/idea" rel="section">
            
            想法
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
            关于我
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/09/09/antv基础配置与示例/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="彭丹丹">
      <meta itemprop="description" content>
      <meta itemprop="image" content="https://upload.jianshu.io/users/upload_avatars/830956/debe5156eed7?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="春风自是人间客">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">antv基础配置与示例</h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2020-09-09T18:35:18+08:00">
                2020-09-09
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/program/" itemprop="url" rel="index">
                    <span itemprop="name">program</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  591
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  3
                </span>
              
            </div>
          

          
          
        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="链接"><a href="#链接" class="headerlink" title="链接"></a>链接</h1><p><a href="https://g2.antv.vision/zh/docs/manual/getting-started" target="_blank" rel="noopener">官方链接-G2快速上手</a><br><a href="https://g2plot.antv.vision/zh/docs/manual/getting-started" target="_blank" rel="noopener">官方链接-G2Plot快速上手</a><br><a href="https://github.com/antvis/G2" target="_blank" rel="noopener">G2-github</a><br><a href="https://github.com/antvis/g2plot" target="_blank" rel="noopener">G2Plot-github</a></p>
<h1 id="G2基础示例"><a href="#G2基础示例" class="headerlink" title="G2基础示例"></a>G2基础示例</h1><p>基础条形图</p>
<p><img src="https://wx4.sinaimg.cn/mw1024/0069qZtTgy1gikkhg5ipwj30rg0gk3ze.jpg" alt="image"></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br></pre></td><td class="code"><pre><span class="line">&lt;!DOCTYPE html&gt;</span><br><span class="line">&lt;html&gt;</span><br><span class="line">&lt;head&gt;</span><br><span class="line">	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;</span><br><span class="line">	&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&gt;</span><br><span class="line">	&lt;script src=&quot;https://gw.alipayobjects.com/os/lib/antv/g2/4.0.15/dist/g2.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="line">	&lt;title&gt;antv G2&lt;/title&gt;</span><br><span class="line">&lt;/head&gt;</span><br><span class="line">&lt;body&gt;</span><br><span class="line">	&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;</span><br><span class="line">	&lt;script&gt;</span><br><span class="line">		const data1 = [</span><br><span class="line">			&#123; type: &apos;汽车&apos;, value: 34 &#125;,</span><br><span class="line">			&#123; type: &apos;建材家居&apos;, value: 85 &#125;,</span><br><span class="line">			&#123; type: &apos;住宿旅游&apos;, value: 103 &#125;,</span><br><span class="line">			&#123; type: &apos;交通运输与仓储邮政&apos;, value: 142 &#125;,</span><br><span class="line">			&#123; type: &apos;建筑房地产&apos;, value: 251 &#125;,</span><br><span class="line">			&#123; type: &apos;教育&apos;, value: 367 &#125;,</span><br><span class="line">			&#123; type: &apos;IT 通讯电子&apos;, value: 491 &#125;,</span><br><span class="line">			&#123; type: &apos;社会公共管理&apos;, value: 672 &#125;,</span><br><span class="line">			&#123; type: &apos;医疗卫生&apos;, value: 868 &#125;,</span><br><span class="line">			&#123; type: &apos;金融保险&apos;, value: 1234 &#125;,</span><br><span class="line">		];</span><br><span class="line">		</span><br><span class="line">		const chart = new G2.Chart(&#123;</span><br><span class="line">			container: &apos;container&apos;,</span><br><span class="line">			autoFit: true,</span><br><span class="line">			height: 500,</span><br><span class="line">		&#125;);</span><br><span class="line">		console.log(G2,chart)</span><br><span class="line">		chart.data(data1);</span><br><span class="line">		chart.scale(&#123;</span><br><span class="line">		value: &#123;</span><br><span class="line">			max: 1400,</span><br><span class="line">			min: 0,</span><br><span class="line">			alias: &apos;销量（百万）&apos;,</span><br><span class="line">		&#125;,</span><br><span class="line">		&#125;);</span><br><span class="line">		chart.axis(&apos;type&apos;, &#123;</span><br><span class="line">		title: null,</span><br><span class="line">		tickLine: null,</span><br><span class="line">		line: null,</span><br><span class="line">		&#125;);</span><br><span class="line"></span><br><span class="line">		chart.axis(&apos;value&apos;, &#123;</span><br><span class="line">		label: null,</span><br><span class="line">		title: &#123;</span><br><span class="line">			offset: 30,</span><br><span class="line">			style: &#123;</span><br><span class="line">			fontSize: 12,</span><br><span class="line">			fontWeight: 300,</span><br><span class="line">			&#125;,</span><br><span class="line">		&#125;,</span><br><span class="line">		&#125;);</span><br><span class="line">		chart.legend(false);</span><br><span class="line">		chart.coordinate().transpose();</span><br><span class="line">		chart</span><br><span class="line">		.interval()</span><br><span class="line">		.position(&apos;type*value&apos;)</span><br><span class="line">		.size(26)</span><br><span class="line">		.label(&apos;value&apos;, &#123;</span><br><span class="line">			style: &#123;</span><br><span class="line">			fill: &apos;#8d8d8d&apos;,</span><br><span class="line">			&#125;,</span><br><span class="line">			offset: 10,</span><br><span class="line">		&#125;);</span><br><span class="line">		chart.interaction(&apos;element-active&apos;);</span><br><span class="line">		chart.render();</span><br><span class="line">	&lt;/script&gt;</span><br><span class="line">&lt;/body&gt;</span><br><span class="line">&lt;/html&gt;</span><br></pre></td></tr></table></figure>
<h1 id="G2Plot基础示例"><a href="#G2Plot基础示例" class="headerlink" title="G2Plot基础示例"></a>G2Plot基础示例</h1><p>基础条形图-滚动条</p>
<p><img src="https://wx1.sinaimg.cn/mw1024/0069qZtTgy1gikkgwc35qj30r40fvwf0.jpg" alt="image"></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br></pre></td><td class="code"><pre><span class="line">&lt;!DOCTYPE html&gt;</span><br><span class="line">&lt;html&gt;</span><br><span class="line">&lt;head&gt;</span><br><span class="line">	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;</span><br><span class="line">	&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&gt;</span><br><span class="line">	&lt;script src=&quot;https://unpkg.com/@antv/g2plot@1.1.26/dist/g2plot.js&quot;&gt;&lt;/script&gt;</span><br><span class="line">	&lt;title&gt;antv g2pro&lt;/title&gt;</span><br><span class="line">&lt;/head&gt;</span><br><span class="line">&lt;body&gt;</span><br><span class="line">	&lt;div id=&quot;canvas&quot;&gt;&lt;/div&gt;</span><br><span class="line">	&lt;script&gt;</span><br><span class="line">		const data = [</span><br><span class="line">		&#123; country: &apos;Asia&apos;, year: 17510, value: 502,&#125;,</span><br><span class="line">		&#123; country: &apos;Asia1&apos;, year: 18200, value: 635,&#125;,</span><br><span class="line">		&#123; country: &apos;Asia2&apos;, year: 12200, value: 635,&#125;,</span><br><span class="line">		&#123; country: &apos;Asia3&apos;, year: 18200, value: 635,&#125;,</span><br><span class="line">		&#123; country: &apos;Europe&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Europ3e&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Eur2ope&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Euro2pe&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Eurwope&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Eure2ope&apos;, year: 17350, value: 163,&#125;,</span><br><span class="line">		&#123; country: &apos;Eu1rope&apos;, year: 18100, value: 203,&#125;,</span><br><span class="line">		];</span><br><span class="line">		const barPlot = new G2Plot.Bar(document.getElementById(&apos;canvas&apos;), &#123;</span><br><span class="line">			forceFit: true,</span><br><span class="line">			title: &#123;</span><br><span class="line">				visible: true,</span><br><span class="line">				text: &apos;基础条形图 - 滚动条&apos;,</span><br><span class="line">			&#125;,</span><br><span class="line">			data,</span><br><span class="line">			meta: &#123;</span><br><span class="line">				year: &#123;</span><br><span class="line">				alias:&apos;年份&apos;,</span><br><span class="line">				range: [0, 1],</span><br><span class="line">				&#125;,</span><br><span class="line">				value: &#123;</span><br><span class="line">				alias: &apos;数量&apos;,</span><br><span class="line">				formatter:(v)=&gt;&#123;return `$&#123;v&#125;个`&#125;</span><br><span class="line">				&#125;</span><br><span class="line">			&#125;,</span><br><span class="line">			xField: &apos;year&apos;,</span><br><span class="line">			yField: &apos;country&apos;,</span><br><span class="line">			xAxis: &#123;</span><br><span class="line">				visible: true,</span><br><span class="line">				label: &#123;</span><br><span class="line">				autoHide: true,</span><br><span class="line">				&#125;,</span><br><span class="line">			&#125;,</span><br><span class="line">			yAxis: &#123;</span><br><span class="line">				visible: true,</span><br><span class="line">				label: &#123;</span><br><span class="line">				autoHide: true,</span><br><span class="line">				&#125;,</span><br><span class="line">			&#125;,</span><br><span class="line">			label: &#123;</span><br><span class="line">				visible: false,</span><br><span class="line">			&#125;,</span><br><span class="line">			interactions: [</span><br><span class="line">				&#123;</span><br><span class="line">				type: &apos;scrollbar&apos;,</span><br><span class="line">				cfg: &#123;</span><br><span class="line">					type: &apos;vertical&apos;,</span><br><span class="line">				&#125;,</span><br><span class="line">				&#125;,</span><br><span class="line">			],</span><br><span class="line">		&#125;);</span><br><span class="line">		barPlot.render();</span><br><span class="line">	&lt;/script&gt;</span><br><span class="line">&lt;/body&gt;</span><br><span class="line">&lt;/html&gt;</span><br></pre></td></tr></table></figure>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2020/09/08/百度地图API示例/" rel="next" title="百度地图API示例">
                <i class="fa fa-chevron-left"></i> 百度地图API示例
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2020/09/11/逻辑英语/" rel="prev" title="逻辑英语">
                逻辑英语 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zODk2OC8xNTQ5Ng=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="https://upload.jianshu.io/users/upload_avatars/830956/debe5156eed7?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240" alt="彭丹丹">
            
              <p class="site-author-name" itemprop="name">彭丹丹</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives">
              
                  <span class="site-state-item-count">183</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">3</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#链接"><span class="nav-number">1.</span> <span class="nav-text">链接</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#G2基础示例"><span class="nav-number">2.</span> <span class="nav-text">G2基础示例</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#G2Plot基础示例"><span class="nav-number">3.</span> <span class="nav-text">G2Plot基础示例</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">彭丹丹</span>

  
</div>


	<div class="powered-by">
	<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
	  本站访客数:<span id="busuanzi_value_site_uv"></span>
	</span>
	</div>
  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  





  

  

  

  
  

  

  

  

  undefined
  
  <!-- 页面爆炸效果 -->
  
<script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/tororo.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true}});</script></body>
</html>
